﻿namespace Sanelib.Dto
{
    public class WebApiResonseBase : IWebApiResponse
    {
        public string Uri { get; set; }
        
        public bool RedirectRequired { get; set; }
        
        public static WebApiResonseBase Create(string uri, bool redirectRequired)
        {
            return new WebApiResonseBase
            {
                Uri = uri,
                RedirectRequired = redirectRequired
            };
        }

        public override string ToString()
        {
            return string.Format("Uri:{0}-Redirect:{1}", Uri, RedirectRequired);
        }
    }
}
